<?php
$ArSetores = Dracosys::getSessionValue(SESSION_INTERFACE, 'SectorsList');
$ArCategorias = Dracosys::getSessionValue(SESSION_INTERFACE, 'CategoriesList');
?>
<h2>Cadastrar Aviso</h2>
<section id="CreateNotice">
    <form method="post" action="funcao/inserir" name="FormCriarAviso">
        <section id="CreateNotice_Dados" class="section-update">
            <div class="out_txt big"><label for="CreateNotice_StTitulo">T&iacute;tulo</label></div>
            <div class="inp_txt big"><input type="text" name="StTitulo" id="CreateNotice_StTitulo" value="" /></div>
            <div class="out_txt big"><label for="CreateNotice_IDCategoria">Categoria</label></div>
            <div class="inp_txt big">
                <select name="" id="CreateNotice_IDCategoria">
                    <?php foreach($ArCategorias as $Categoria): ?>
                        <option value="<?=$Categoria->getIDCategoria()?>"><?=$Categoria->getStCategoria()?></option>
                    <?php endforeach; ?>
                </select>
            </div>
            <div class="out_txt big"><label for="CreateNotice_IDSetor">Setor</label></div>
            <div class="inp_txt big">
                <select name="" id="CreateNotice_IDSetor">
                    <option value="TODOS">Todos</option>
                    <?php foreach($ArSetores as $Setor): ?>
                        <option value="<?=$Setor->getIDSetor()?>"><?=$Setor->getStNome()?></option>
                    <?php endforeach; ?>
                </select>
            </div>
            <div class="out_txt big textarea"><label for="CreateNotice_TxAviso">Conteúdo</label></div>
            <div class="inp_txt big textarea"><textarea id="CreateNotice_TxAviso"></textarea></div>
            <div class="out_txt big"><label for="CreateNotice_DtInicio">Iniciar em</label></div>
            <div class="inp_txt big"><input type="text" name="DtInicio" id="CreateNotice_DtInicio" value="" class="Date" /></div>
            <div class="out_txt big"><label for="CreateNotice_DtDesativar">Desativar em</label></div>
            <div class="inp_txt big"><input type="text" name="DtDesativar" id="CreateNotice_DtDesativar" value="" class="Date" /></div>
        </section>
        <div class="btn"><button class="v1">Cadastrar</button></div>
    </form>
</section>